package com.ny.service.impl;

import com.ny.dao.OrderDao;
import com.ny.dao.impl.OrderDaoImpl;
import com.ny.entity.Order;
import com.ny.service.OrderService;

import java.sql.SQLException;

public class OrderServiceImpl implements OrderService {
    private OrderDao orderDao=new OrderDaoImpl();
    @Override
    public int insertOrder(Order order) throws SQLException, ClassNotFoundException {
        return orderDao.insertOrder(order);
    }
}

